﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BuscoPre.UI.ViewModels.SearchResultViewModel>" %>
<table border="0" cellpadding="0" cellspacing="0" align="center">
	<tr>
		<td>
			<img src="<%= Url.Content("~/images/spacer.gif")%>" width="4" height="1" border="0"
				alt="" />
		</td>
		<td valign="top">
			<table border="0" cellpadding="0" cellspacing="0" style="background: #809BA8">
				<tr>
					<td>
						<img src="<%= Url.Content("~/images/left_left.gif")%>" width="6" height="29" border="0"
							alt="">
					</td>
					<td>
						<img src="<%= Url.Content("~/images/spacer.gif")%>" width="7" height="1" border="0"
							alt="">
					</td>
					<td width="844">
						<div class="lb">
							Resultados de la busqueda</div>
						<div class="lw">
							Resultados de la busqueda</div>
					</td>
					<td>
						<img src="<%= Url.Content("~/images/left_right.gif")%>" width="5" height="29" border="0"
							alt="">
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
<!-- RESULTS -->
<table align="center" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td width="852" align="center">
			<div>
				<img src="<%= Url.Content("~/images/spacer.gif")%>" width="1" height="12" border="0"
					alt=""></div>
			<table id="result" border="0" cellpadding="0" cellspacing="0">
				<tbody>
					<tr>
						<% for (int i = 0; i < Model.Results.Count; i++)
		 {%>
						<td width="200" valign="top">
							<table width="160" cellspacing="0" cellpadding="0" border="0">
								<tbody>
									<tr height="60">
										<td valign="top">
											<div align="center" class="item_desc">
												<%=Model.Results[i].Title %></div>
										</td>
									</tr>
									<tr>
									</tr>
									<tr>
										<td width="86" align="center">
											<a href="#">
												<img width="80" height="80" border="0" src="<%= Url.Content(Model.Results[i].Thumbnail) %>"></a>
										</td>
									</tr>
									<tr height="15">
									</tr>
									<tr>
										<td>
											<div align="center" class="item_price">
												<%=Model.Results[i].Price %>
												| <a class="item_price" href="#">detalle</a></div>
										</td>
									</tr>
									<tr>
									</tr>
								</tbody>
							</table>
						</td>
						<%
			 if (i % 4 < 3)
			 {%>
						<td height="126" style="background: url(&quot;images/bg_ver.gif&quot;) repeat-y scroll center center transparent;">
							<img width="14" height="1" border="0" alt="" src="<%= Url.Content("~/images/spacer.gif")%>">
						</td>
						<%}
			 else
			 {
				 if (i < Model.Results.Count - 1)
				 {%>
					</tr>
					<tr>
						<%for (int j = 0; j < 4; j++)
		{%>
						<td style="background: url(&quot;images/bg_hor.gif&quot;) repeat-x scroll center center transparent;">
							<img width="1" height="1" border="0" alt="" src="<%= Url.Content("~/images/spacer.gif")%>">
						</td>
						<td>
							<img width="1" height="19" border="0" alt="" src="<%= Url.Content("~/images/spacer.gif")%>">
						</td>
						<%} %>
					</tr>
					<tr>
						<%}
				 else
				 {

				 }
			 }
		 } %>
					</tr>
				</tbody>
			</table>
			<div>
				<img src="<%= Url.Content("~/images/spacer.gif")%>" width="1" height="18" border="0"
					alt=""></div>
		</td>
	</tr>
	<tr>
		<td>
			<img src="<%= Url.Content("~/images/c4.gif")%>" width="5" height="5" border="0" alt="">
		</td>
		<td style="background: url(<%= Url.Content("~/images/c_bot.gif")%>)">
			<img src="<%= Url.Content("~/images/spacer.gif")%>" width="1" height="1" border="0"
				alt="">
		</td>
		<td>
			<img src="<%= Url.Content("~/images/c3.gif")%>" width="5" height="5" border="0" alt="">
		</td>
	</tr>
</table>
